#ifndef EXPORTDATATHREAD_H
#define EXPORTDATATHREAD_H

#include <QThread>
#include "sensortype.h"
#include "databasehelper.h"
#include <QFile>
#include <QList>
#include <QTextStream>

class ExportDataThread : public QThread
{
    Q_OBJECT
public:
    explicit ExportDataThread(SensorType type,qint64 startTime,qint64 endTime,QString path,QObject *parent = 0);

private:
    SensorType type;
    qint64 startTime;
    qint64 endTime;
    QString path;

protected:
    void run();

signals:
    // 查出一条记录就发一个信号，参数是百分比，-1表示无结果
    void progressSignal(int);
};

#endif // EXPORTDATATHREAD_H
